<style type="text/css">
	.mbody{position: absolute; width: 100%; top: 0; bottom: 45px; overflow-y: auto;}
	.mfooter{ position: fixed; width: 100%; height: 45px; bottom: 0; left: 0; background: #fff; z-index: 10}
	.fnav-box{display: table;  width: 100%; height: 100%;}
	.fnav-box .fnav{display: table-cell; text-align: center; vertical-align: middle; width: 20%;padding-top: 3px;}
	.fnav-box .fnav a,.fnav-box .fnav a:hover,.fnav-box .fnav a:link{color:#999;}
	.fnav-box .fnav i{ font-size:20px; }
	.fnav-box .fnav p{margin: 0; padding: 0; font-size: 12px;}
	.fnav-box .fnav.active a{color: rgb(13, 190, 8)}
	.cartNum{    position: absolute;
    top: -4px;
    right: -15px;
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #bd081c;
    color: #FFF;
    font-size: 10px;
    line-height: 1em;
    padding: 3px;
    border-radius: 50%;
    text-align: center;
    font-weight: 100;
    display: none;
}
</style>
<div class="mfooter">
	<div class="fnav-box">
		<div class="fnav">
			<a href="{:url('Index/index')}">
			<i class="fa fa-user"></i>
			<p>客户列表</p>
			</a>
		</div>
		<div class="fnav {if(Request()->controller() == 'Freqlist')} active{/if}">
			<a href="{:url('Freqlist/recGoods',['shop_id'=>$shop_id])}">
			<i class="fa fa-calendar-o"></i>
			<p>常用清单</p>
			</a>
		</div>
		<div class="fnav {if(Request()->controller() == 'Mall')} active{/if}">
			<a href="{:url('Mall/index',['shop_id'=>$shop_id])}">
			<i class="fa fa-reorder"></i>
			<p>全部商品</p>
			</a>
		</div>
		<div class="fnav {if(Request()->controller() == 'Cart')} active{/if}">
			<a href="{:url('Cart/index',['shop_id'=>$shop_id])}">
			<i class="fa fa-shopping-cart" style="position: relative;"><span class="cartNum"></span></i>
			<p>购物车</p>
			</a>
		</div>
		<div class="fnav  {if(Request()->controller() == 'Order')} active{/if}">
			<a href="{:url('Order/index',['shop_id'=>$shop_id])}">
			<i class="fa fa-file-text-o"></i>
			<p>订单</p>
			</a>
		</div>
	</div>
</div>
<script type="text/javascript">
	$(function(){
		majax('{:url("Cart/cartNum",["shop_id"=>$shop_id])}',{},function(d){
			if (d.code>0) {
				if (d.data>0) {
					$('.cartNum').show().text(d.data);
				}
			}
		},{autoload:false,automsg:false})
	})
</script>